<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlertProvinceCodeToSiteLocationMall extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('site_location_mall', function (Blueprint $table) {
            $table->unsignedInteger('provinceCode')->default(0)->comment('省Code');
            $table->unsignedInteger('cityCode')->default(0)->comment('市Code');
            $table->unsignedInteger('districtCode')->default(0)->comment('区Code');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('site_location_mall', function (Blueprint $table) {
            $table->dropColumn('provinceCode');
            $table->dropColumn('cityCode');
            $table->dropColumn('districtCode');
        });
    }
}
